package thu.infinity.commons;

import java.util.concurrent.TimeUnit;

public final class Para {
	// Application ID
	public static final String FB_APP_ID = "292337034140680";
	
	// Cache
	public static final String CacheRoot = "D:/Workspace/InfinityProxy/proxydata/";
	public static final String CacheLogDir = "log/";
	
	// LogInOut
	public static final int LOG_IN = 0;
	public static final int LOG_OUT = 1;
	
	// TaskScheduler
	public static final int TASKSCHEDULER_THREADPOOL_SIZE = 20;
	public static final int TASKSCHEDULER_THREADPOOL_MAXSIZE = 100;
	public static final int TASKSCHEDULER_THREADPOOL_KEEPALIVETIME = 120;
	public static final TimeUnit TASKSCHEDULER_THREADPOOL_TIMEUNIT = TimeUnit.SECONDS;
	
	public static final int FUTURE_HANDLER_PERIOD = 10000;
	public static final int WAIT_FUTURE_TIME = 100;
	
	public static final int CACHE_THREADPOOL_SIZE = 20;
	public static final int CACHE_THREADPOOL_MAXSIZE = 100;
	public static final int CACHE_THREADPOOL_KEEPALIVETIME = 120;
	public static final TimeUnit CACHE_THREADPOOL_TIMEUNIT = TimeUnit.SECONDS;
	//public static final int TASKSCHEDULER_TASKFUTURES_MAXSIZE = 1000;
	
	public static final String DefaultStartTime = "2000-01-01T00:00:00+0000";
	
	// AggregatorHandler
	public static final int PORT_NUM = 9000;

}
